
// 包名
var excelIn = function (ele) {
    var data;
    this.excelInit = function () {
        layui.use('upload', function () {
            var $ = layui.jquery, upload = layui.upload;
            var uploadInst = upload.render({
                elem: '#' + ele
                , url: AppComm.url.getBaseURL()+'/excel/ajax/excelIn'
                , accept: 'file' //普通文件
                , done: function (res) {
                    data = res;
                    alert("导入完毕");
                }
            })
        })
    }
    this.getData = function(){
        return data;
    }
}

